projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dad1931
)
GtkPopover: Don't apply shape on wayland
author
Timm Bäder
<mail@baedert.org>
Thu, 1 Oct 2015 11:08:37 +0000
(13:08 +0200)
committer
Timm Bäder
<mail@baedert.org>
Wed, 7 Oct 2015 07:49:51 +0000
(09:49 +0200)
Popovers are subsurfaces on wayland so we don't need that, and the shape
messed up hidpi popovers there.
gtk/gtkpopover.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpopover.c
b/gtk/gtkpopover.c
index 5c4e0febb7eaa60012711b929916d237d173bbc6..0b098ac53c1eb82406096fa1c0ff5d2be857ef50 100644
(file)
--- a/
gtk/gtkpopover.c
+++ b/
gtk/gtkpopover.c
@@
-871,6
+871,11
@@
gtk_popover_update_shape (GtkPopover *popover)
GdkWindow *win;
cairo_t *cr;
+#ifdef GDK_WINDOWING_WAYLAND
+ if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
+ return;
+#endif
+
win = gtk_widget_get_window (widget);
surface =
gdk_window_create_similar_surface (win,